package cn.edu.scau.cmi.huangxiaodong.mybatis.entity;

import javafx.beans.property.SimpleLongProperty;
import javafx.beans.property.SimpleStringProperty;

public class Student_Entity {
	 private final SimpleLongProperty id = new SimpleLongProperty();
	
	private final SimpleStringProperty name = new SimpleStringProperty("");
	
	 private final SimpleLongProperty number= new SimpleLongProperty();
	
	 private final SimpleLongProperty tutor= new SimpleLongProperty();

	 public Student_Entity() {
		 
	 }
	public long getId() {
		return id.get();
	}

    public SimpleLongProperty idProperty() {
        return id;
    }
    
	public void setId(long id) {
		this.id.set(id);
	}

	public String getName() {
		return name.get();
	}
	
	 public SimpleStringProperty nameProperty() {
	        return name;
	   }
	
	public void setName(String name) {
		this.name.set( name);
	}

	public Long getNumber() {
		return number.get();
	}

	public void setNumber(Long number) {
		this.number.set(number);
	}

	  public SimpleLongProperty numberProperty() {
	        return number;
	    }
	  
	public long getTutor() {
		return tutor.get();
	}

	public void setTutor(Long tutor) {
		this.tutor.set( tutor);
	}

	 public SimpleLongProperty tutorProperty() {
	        return tutor;
	    }
	@Override
	public String toString() {
		return "Student [id=" + id.get() + ", name=" + name.get()+ ", number=" + number.get() + ", turtor=" + tutor.get() + "]";
	}
}
